package com.github.shiqiyue.springclouddemoribbon.controller;

import com.github.shiqiyue.springclouddemoribbon.service.HelloService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/***
 * 由wwy创建于2018/6/4
 */
@RestController
public class IndexController {

    @Autowired
    private HelloService helloService;

    @RequestMapping
    public String index() {
        return helloService.hiService("wwy");
    }
}
